// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   SaveFile.java

package include.nseer_cookie;

import java.io.*;

public class SaveFile
{

	public SaveFile()
	{
	}

	public String toSave(String xml_path, String cont)
	{
		try
		{
			FileOutputStream fo = new FileOutputStream(xml_path);
			Writer so = new OutputStreamWriter(fo, "UTF-8");
			String content = cont;
			if (content.indexOf("</textarea1>") != -1)
			{
				content = content.replace("</textarea1>", "</textarea>");
				so.write(content);
			} else
			if (content.indexOf("</TEXTAREA1>") != -1)
			{
				content = content.replace("</TEXTAREA1>", "</TEXTAREA>");
				so.write(content);
			} else
			{
				so.write(content);
			}
			so.close();
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return cont;
	}
}
